<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>收货地址管理-美丽说</title>
	<link rel="stylesheet" href="__TEMPLATE__/css/order.css" />
	<script type="text/javascript" src="__TEMPLATE__/js/address.js"></script>
	<script src="__STATIC__/jquery/jquery-1.7.2.min.js" type="text/javascript" charset="utf-8"></script>
	<script src="__TEMPLATE__/js/address2.js" type="text/javascript" charset="utf-8"></script>
	
	<script language="javascript">
		var s=["s1","s2","s3"];
		var opt0 = ["请选择省","请选择市","请选择县（区）"];
		function setup(){
		 for(i=0;i<s.length-1;i++)
		  document.getElementById(s[i]).onclick=new Function("change("+(i+1)+")");
		 change(0);
		}
		window.onload=function(){
		setup()	
			
		};
		$(function(){
			
			$('.dj').live('click',function(){
				var dj = $('#s1').val() + '省,' + $('#s2').val() + '市,' + $('#s3').val();
				alert(dj);	
			})
		})
</script>
</head>
<body>
	<!--顶部登录注册区域开始-->
	<include file='__TEMPLATE__/head.html'/>

	<!--导航条结束-->
	<!--我的收货地址-->
	<div id="order_head">
		<p><a href="{|U:'Index/index'}">美丽说</a>>
		<a href="{|U:'Porder/index'}">我的美丽说订单</a>>
		我的收货地址</p>
	</div>
	
	
	<!--我的收货地址结束-->
	<!--我的收货地址主体内容部分开始-->
	<div id="order">
		<ul class="left">
			<li><a href="{|U:'Porder/index'}">已买到的商品</a></li>
			<li><a href="">我的购物车</a></li>
			<li><a class="select" href="">我的收货地址</a></li>
			<li><a href="">我的优惠券</a></li>
			<li><a href="">退款/退货</a></li>
			<li><a href="">售后</a></li>
			<li  class="last"><a href="">我的投诉</a></li>
		</ul><!--left-->
		<div class="right">
			<div class="address_title">
				<span style="width: 110px;">收货人</span>
				<span style="width: 316px;">收货地址</span>
				<span style="width: 57px;">邮政编码</span>
				<span style="width: 236px;">联系电话</span>
				<span style="width: 101px;">操作</span>
			</div><!--address_title-->
			
			<foreach from='$data' key='$k' value='$v'>
				<div style="position: relative;" class="address_info">
					<span style="width: 110px;">{$v.ctc}</span>
					<span style="width: 316px;">{$v.address}</span>
					<span style="width: 57px;">100000</span>
					<span style="width: 236px;">{$v.tel}&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<if value="$v['defau']">默认地址<else/><a href="{|U:'address/set_defau',array('addressid'=>$v['addressid'])}">设为默认</a></if>  </span>
					<span style="width: 101px;"><a href="">修改</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
						<a class="del" href="javascript:;">删除</a>
					</span>
					<!--弹出提示框-->
							<div style="top: -30px;left: 300px;" class="del_one">
								<a href="javascript:;" style="float: right;background: none; width: 20px;" class="click"><img style="width: 18px;height: 18px;" src="__TEMPLATE__/img/click.jpg" alt="" /></a>
								<h4>提示</h4>
								<p>您是否要删除地址？</p>
								<div>
									<a style="margin-right:10; color: white;width: 30px;" class="con" href="{|U:'Address/del',array('addressid'=>$v['addressid'])}">确定</a>
									<a style="margin: 0; width: 30px;background: #ccc;" class="canc" href="javascript:;">取消</a>
								</div>
			
							</div>
							<!--弹出提示框-->
				</div><!--address_info-->
			</foreach>
		<!--新增/编辑收货地址开始-->
			<form action="{|U:'Address/add'}" method="post">
				<div class="container">
					<br />
					<br />
					<br />
					<p>新增/编辑收货地址：</p>
					<p><span>收货人姓名：</span><input name="ctc" type="text" /></p>
					<p><span>联系电话：</span><input name="tel" type="text" /></p>
					<p><span>所在地：</span>
						<select id="s1" name="province">
						<option>省份</option>
						</select>
						<select id="s2" name="city">
							<option>地级市</option>
						</select>
						<select id="s3" name="county">
							<option>市、县级市、县</option>
						</select>
					</p>
					
					
					
					<p><span>街道地址：</span><input name="street" class="long" type="text" /></p>
					<p><span>邮政编码：</span><input name="code" type="text" /></p>
					<label class="checkbox-inline">
  <input class="tick" type="checkbox" id="inlineCheckbox1" value="1">设为默认
    </label>
    				<p><input class="save" type="submit" value="保存地址" /></p>
				</div><!--container-->
				
			</form>
		</div><!--right-->
		
		<!--新增/编辑收货地址结束-->
	</div><!--order-->
	
	
	<!--我的收货地址主体内容部分开始结束-->
	
		<!--尾部开始-->
	<include file='__TEMPLATE__/bottom.html'/>
	
	<!--尾部结束-->
</body>
</html>